import React from 'react'
import DetailsInfo from "./DetailsInfo"
import { useParams } from "react-router-dom"
import DetailsHeader from "../../components/PubHeader"


export default function Details () {

  const params = useParams();
  console.log("详情页接收的参数id：" + params.id);
  return (
    <div>
      <DetailsHeader title="详情" />
      <DetailsInfo id={params.id} />
    </div>
  )
}
